#include <stdio.h>
#include <stdlib.h>
int main()
{
    int numsSize = 0;
    scanf("%d", &numsSize);
    int nums[numsSize];
    for(int i = 0; i < numsSize; i++)
    {
        scanf("%d", &nums[i]);
    }
    int target = 0;
    scanf("%d", &target);
    for (int i = 0; i < numsSize; ++i) {
        for (int j = i + 1; j < numsSize; ++j) {
            if (nums[i] + nums[j] == target) {
                int* ret = malloc(sizeof(int) * 2);
                ret[0] = i, ret[1] = j;
            }
        }
    }
    return 0;
}